<?php
/*
@author: wjf
@contact: Hurrican
@software: PhpStorm
@create: 2022/7/28 17:07
*/

declare(strict_types=1);
namespace app\api\controller\alipay;

use app\api\controller\Controller;
use think\App;
use app\api\service\alipay\Payment as PaymentService;

class Payment extends Controller
{
    private $paymentService;
    public function __construct(App $app,PaymentService $paymentService)
    {
        parent::__construct($app);
        $this->paymentService = $paymentService;
    }

    //支付宝回调
    public function notifyCallback()
    {
        $this->paymentService->notifyCallback();
    }

    //响应回调
    public function returnCallback()
    {
        $this->paymentService->returnCallback();
    }


    //转账(测试用)
    public function transfer(){
        $this->paymentService->transfer();
    }

}